package com.tour.tour.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author 76004
 * @apiNote
 * @date 2023/4/24 23:59
 */
@Data
@TableName("post_info")
public class PostInfo {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    private String uid;

    private String title;

    private String content;

    private Date createTime;

    private Integer status;

    private Integer level;

    private Integer parentId;

    @TableField(exist = false)
    private List<PostInfo>comments;

    @TableField(exist = false)
    private String url;

}
